/*
 * Copyright 2010 Kevin L'Huillier <klhuillier@gmail.com>
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

package org.lhuillier.pwsafe.io.codec;


import java.util.Arrays;
import java.util.List;
import com.google.inject.Inject;
import com.google.inject.Provider;


class FieldConvertersProvider implements Provider<List<FieldConverter>> {
    @Inject private GroupConverter group;
    @Inject private TitleConverter title;
    @Inject private UsernameConverter username;
    @Inject private NotesConverter notes;
    @Inject private PasswordConverter password;
    @Inject private CreateTimeConveter createTime;
    @Inject private PwModTimeConverter pwModTime;
    @Inject private LastAccessTimeConverter lastAccessTime;
    @Inject private PwExpiryTimeConverter pwExpiryTime;
    @Inject private LastModifyTimeConverter lastModifyTime;
    @Inject private UrlConverter url;
    @Inject private AutotypeConverter autotype;
    @Inject private PwHistoryConverter pwHistory;
    @Inject private PwPolicyConverter pwPolicy;
    @Inject private PwExpiryIntervalConverter pwExpiryInterval;
    @Inject private RunCommandConverter runCommand;
    @Inject private DblClickActionConverter dblClickAction;
    @Inject private EmailAddressConverter emailAddress;
    
    
    @Override
    public List<FieldConverter> get() {
        return Arrays.asList(group, title, username, notes, password,
                createTime, pwModTime, lastAccessTime, pwExpiryTime,
                lastModifyTime, url, autotype, pwHistory, pwPolicy, 
                pwExpiryInterval, runCommand, dblClickAction, emailAddress);
    }
}
